module.exports = {
    css: {
        loaderOptions: {
            // 给 sass-loader 传递选项
            scss: {
                // @/ 是 src/ 的别名
                // 注意：在 sass-loader v7 中，这个选项名是 "data"
                // prependData: ` 
                //       @import "@/assets/custom_theme.scss";
                //    @import "@nutui/nutui-taro/dist/styles/themes/dist/default.css";
                //      `,
            }
        },
    },
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
    }
}